package com.example.app2024.h5;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.app2024.R;

public class H5Activity extends Activity implements View.OnClickListener
{
      
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_h5);
            findViews();
      }
      
      private Button btnJavaAndJs;
      private Button btnJsCallJava;
      private Button btnJsCallPhone;
      
      /**
       * Find the Views in the layout<br />
       * <br />
       * Auto-created on 2016-07-28 10:58:01 by Android Layout Finder
       * (http://www.buzzingandroid.com/tools/android-layout-finder)
       */
      private void findViews()
      {
            btnJavaAndJs = (Button) findViewById(R.id.btn_java_and_js);
            btnJsCallJava = (Button) findViewById(R.id.btn_js_call_java);
            btnJsCallPhone = (Button) findViewById(R.id.btn_js_call_phone);
            
            btnJavaAndJs.setOnClickListener(this);
            btnJsCallJava.setOnClickListener(this);
            btnJsCallPhone.setOnClickListener(this);
      }
      
      /**
       * Handle button click events<br />
       * <br />
       * Auto-created on 2016-07-28 10:58:01 by Android Layout Finder
       * (http://www.buzzingandroid.com/tools/android-layout-finder)
       */
      @Override
      public void onClick(View v)
      {
            if (v == btnJavaAndJs)
            {
                
                  Intent intent = new Intent(this, JavaAndJSActivity.class);
                  startActivity(intent);
            }
            else if (v == btnJsCallJava)
            {
               
                  Intent intent = new Intent(this, JsCallJavaVideoActivity.class);
                  startActivity(intent);
            }
            else if (v == btnJsCallPhone)
            {
                 
                  Intent intent = new Intent(this, JsCallJavaCallPhoneActivity.class);
                  startActivity(intent);
            }
      }
}